package cn.com.nes.mybatis.agent.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 项目客户关系表
 * @TableName t_project_customer_relationship
 */
@TableName(value ="t_project_customer_relationship")
@Data
public class ProjectCustomerRelationship implements Serializable {
    /**
     * 数据库主键标识，唯一标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 项目ID
     */
    @TableField(value = "project_uuid")
    private String projectUuid;

    /**
     * 导入客户ID
     */
    @TableField(value = "customer_id")
    private String customerId;

    /**
     * 商机ID
     */
    @TableField(value = "business_id")
    private String businessId;


    /**
     * 商机ID
     */
    @TableField(value = "main_business_id")
    private String mainBusinessId;
    /**
     * 项目客户ID
     */
    @TableField(value = "main_customer_id")
    private String mainCustomerId;

    /**
     * 是否为主客户，0-否，1-是
     */
    @TableField(value = "main_flag")
    private Integer mainFlag;

    /**
     * 导入批次
     */
    @TableField(value = "import_Batch")
    private Long importBatch;

    /**
     * 数据类型，0-excel导入，1-系统生成，2-手动录入
     */
    @TableField(value = "data_type")
    private Integer dataType;

    /**
     * 删除标识, 0-启用，1-弃用
     */
    @TableField(value = "deleted")
    private Integer deleted;

    /**
     * 创建人ID
     */
    @TableField(value = "gmt_create_id")
    private Long gmtCreateId;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 修改人ID
     */
    @TableField(value = "gmt_modified_id")
    private Long gmtModifiedId;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}